function [ subX ] = getArrayIndexLinear( X,firstM,lastM )
subX = X(firstM:lastM);
end

